from django import template
register = template.Library()

@register.simple_tag
def dict_lookup(the_dict, key):
    try:
        return the_dict[key]
    except KeyError:
        return ''

